package cn.edu.Day08;

import java.util.Scanner;

public class ThreadTest extends Thread {
    static int count=10;
    public static void main(String[] args) {
        System.out.println("请输入您的姓名：");
        Scanner scanner=new Scanner(System.in);
        String name1=scanner.next();
        Person per=new Person(name1);
//        System.out.println("您想要买几张票：");
//        int many=scanner.nextInt();
        new Thread(new Web()).start();
        new Thread(new Local()).start();









//        Runnable run1=new RunThread1();
//        Thread t1=new Thread(run1);
//        t1.start();
//        MyThread mt=new MyThread();
        // mt.run();
//        mt.setPriority(Thread.MAX_PRIORITY);
//        ThreadTest tt=new ThreadTest();
//        System.out.println(tt.getPriority());
//        mt.start();
//        mt.interrupt();
//        MyThread.yield();
//        try {
//            mt.join();
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        for (int i = 0; i <10 ; i++) {
//            System.out.println("main"+i);
////            try {
////                Thread.sleep(1000);
////            } catch (InterruptedException e) {
////                e.printStackTrace();
////            }
//        }
    }
}
